﻿using SCG.General;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TTEngine
{
    public class RatMaze : SnakeMaze
    {
        //constrcutor
        public RatMaze()
            : base()
        {
            for (int t = 1; t < 4; t++)
            {
                SnakeMaze sm = new SnakeMaze();
                sm.Twist(t);
                Matrix = Matrix.Superimpose(sm.Matrix, Globals.TERRAIN_WALL);
            }
        }

        //clone
        public override Room Clone()
        {
            return new RatMaze();
        }

        //not considered a corridor
        public override bool IsCorridor
        {
            get
            {
                return false;
            }
        }

        //rats!
        public override void PostProcessing()
        {
            int qty = Globals.RandomIntFromTo(7, 12);
            Level.SpawnMonsters(CenterX, CenterY, "Rat", qty, 7, 1);
            Level.DistributeLoot(1, 3, CenterX, CenterY, 7, 1);
        }
    }
}
